package com.ys.service.finance;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.ys.vo.R;

import lombok.AllArgsConstructor;
import lombok.Data;

public interface TcwRunningBackService {
	
	R checkForAdd(String ids);
	@Data
	@AllArgsConstructor
	public class CheckForAddDto{
		private List<RowDto> rows; // 

		@Data
		@AllArgsConstructor
		public static class RowDto{
			private Long runningIdOne;
			private String vgsbmFromOne;
			private String vgsjcFromOne;
			private String vgsbmToOne;
			private String vgsjcToOne;
			private String vjylxOne;
			private BigDecimal fjeOne; // 
			private String vbzOne;

			private Long runningIdTwo;
			private String vgsbmFromTwo;
			private String vgsjcFromTwo;
			private String vgsbmToTwo;
			private String vgsjcToTwo;
			private String vjylxTwo;
			private BigDecimal fjeTwo; // 
			private String vbzTwo;
		}
	}
	
	R add(String bid, String urlFile, String detailArr, Long menuId) throws Exception;

	R edit(Map<String, Object> params) throws Exception;
	
	R deleteTrue(Long id) throws Exception;
	
	R flowPass(Long id, String loginUserId) throws Exception;
	
	void flowFinish(Long id) throws Exception;
	
	String getBidForAdd();
}
